Integrand size = 35, antiderivative size = 270 \[ \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\frac {(163 A-75 B) \arctan \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{16 \sqrt {2} a^{5/2} d}-\frac {(299 A-147 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{48 a^2 d \sqrt {a+a \cos (c+d x)}}-\frac {(A-B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2}}-\frac {(17 A-9 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2}}+\frac {(95 A-39 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{48 a^2 d \sqrt {a+a \cos (c+d x)}} \]
-1/4*(A-B)*sec(d*x+c)^(3/2)*sin(d*x+c)/d/(a+a*cos(d*x+c))^(5/2)-1/16*(17*A -9*B)*sec(d*x+c)^(3/2)*sin(d*x+c)/a/d/(a+a*cos(d*x+c))^(3/2)+1/48*(95*A-39 *B)*sec(d*x+c)^(3/2)*sin(d*x+c)/a^2/d/(a+a*cos(d*x+c))^(1/2)+1/32*(163*A-7 5*B)*arctan(1/2*sin(d*x+c)*a^(1/2)*2^(1/2)/cos(d*x+c)^(1/2)/(a+a*cos(d*x+c ))^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/a^(5/2)/d*2^(1/2)-1/48*(299*A- 147*B)*sin(d*x+c)*sec(d*x+c)^(1/2)/a^2/d/(a+a*cos(d*x+c))^(1/2)
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 8.07 (sec) , antiderivative size = 1152, normalized size of antiderivative = 4.27 \[ \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx =\text {Too large to display} \]
(2*B*Cos[c/2 + (d*x)/2]^5*Sec[(c + d*x)/2]^4*Sin[c/2 + (d*x)/2]*((1 - 2*Si n[c/2 + (d*x)/2]^2)^(-1))^(3/2)*((8*Cos[(c + d*x)/2]^6*HypergeometricPFQ[{ 2, 2, 2, 5/2}, {1, 1, 11/2}, Sin[c/2 + (d*x)/2]^2/(-1 + 2*Sin[c/2 + (d*x)/ 2]^2)]*Sin[c/2 + (d*x)/2]^2)/(315*(-1 + 2*Sin[c/2 + (d*x)/2]^2)) + (Csc[c/ 2 + (d*x)/2]^8*(1 - 2*Sin[c/2 + (d*x)/2]^2)^2*Sqrt[Sin[c/2 + (d*x)/2]^2/(- 1 + 2*Sin[c/2 + (d*x)/2]^2)]*(-15*ArcTanh[Sqrt[Sin[c/2 + (d*x)/2]^2/(-1 + 2*Sin[c/2 + (d*x)/2]^2)]]*Cos[(c + d*x)/2]^4*(-343 + 1465*Sin[c/2 + (d*x)/ 2]^2 - 2021*Sin[c/2 + (d*x)/2]^4 + 824*Sin[c/2 + (d*x)/2]^6) + Sqrt[Sin[c/ 2 + (d*x)/2]^2/(-1 + 2*Sin[c/2 + (d*x)/2]^2)]*(-5145 + 33980*Sin[c/2 + (d* x)/2]^2 - 87764*Sin[c/2 + (d*x)/2]^4 + 109737*Sin[c/2 + (d*x)/2]^6 - 66122 *Sin[c/2 + (d*x)/2]^8 + 15344*Sin[c/2 + (d*x)/2]^10)))/120))/(d*(a*(1 + Co s[c + d*x]))^(5/2)) - (A*Cot[c/2 + (d*x)/2]^5*Csc[c/2 + (d*x)/2]^4*Sec[(c + d*x)/2]^4*((1 - 2*Sin[c/2 + (d*x)/2]^2)^(-1))^(7/2)*(640*Cos[(c + d*x)/2 ]^8*HypergeometricPFQ[{2, 2, 2, 2, 7/2}, {1, 1, 1, 13/2}, Sin[c/2 + (d*x)/ 2]^2/(-1 + 2*Sin[c/2 + (d*x)/2]^2)]*Sin[c/2 + (d*x)/2]^12 - 1280*Cos[(c + d*x)/2]^6*HypergeometricPFQ[{2, 2, 2, 7/2}, {1, 1, 13/2}, Sin[c/2 + (d*x)/ 2]^2/(-1 + 2*Sin[c/2 + (d*x)/2]^2)]*Sin[c/2 + (d*x)/2]^12*(-6 + 5*Sin[c/2 + (d*x)/2]^2) + 33*(1 - 2*Sin[c/2 + (d*x)/2]^2)^3*Sqrt[Sin[c/2 + (d*x)/2]^ 2/(-1 + 2*Sin[c/2 + (d*x)/2]^2)]*(-105*ArcTanh[Sqrt[Sin[c/2 + (d*x)/2]^2/( -1 + 2*Sin[c/2 + (d*x)/2]^2)]]*Cos[(c + d*x)/2]^4*(-10935 + 72902*Sin[c...
Time = 1.64 (sec) , antiderivative size = 289, normalized size of antiderivative = 1.07, number of steps used = 18, number of rules used = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.486, Rules used = {3042, 3440, 3042, 3457, 27, 3042, 3457, 27, 3042, 3463, 27, 3042, 3463, 27, 3042, 3261, 218}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sec ^{\frac {5}{2}}(c+d x) (A+B \cos (c+d x))}{(a \cos (c+d x)+a)^{5/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\left (a \sin \left (c+d x+\frac {\pi }{2}\right )+a\right )^{5/2}}dx\) |
\(\Big \downarrow \) 3440 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) (\cos (c+d x) a+a)^{5/2}}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {A+B \sin \left (c+d x+\frac {\pi }{2}\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (\sin \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^{5/2}}dx\) |
\(\Big \downarrow \) 3457 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\int \frac {a (11 A-3 B)-6 a (A-B) \cos (c+d x)}{2 \cos ^{\frac {5}{2}}(c+d x) (\cos (c+d x) a+a)^{3/2}}dx}{4 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\int \frac {a (11 A-3 B)-6 a (A-B) \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) (\cos (c+d x) a+a)^{3/2}}dx}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\int \frac {a (11 A-3 B)-6 a (A-B) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (\sin \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^{3/2}}dx}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3457 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\int \frac {a^2 (95 A-39 B)-4 a^2 (17 A-9 B) \cos (c+d x)}{2 \cos ^{\frac {5}{2}}(c+d x) \sqrt {\cos (c+d x) a+a}}dx}{2 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\int \frac {a^2 (95 A-39 B)-4 a^2 (17 A-9 B) \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) \sqrt {\cos (c+d x) a+a}}dx}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\int \frac {a^2 (95 A-39 B)-4 a^2 (17 A-9 B) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3463 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 \int -\frac {a^3 (299 A-147 B)-2 a^3 (95 A-39 B) \cos (c+d x)}{2 \cos ^{\frac {3}{2}}(c+d x) \sqrt {\cos (c+d x) a+a}}dx}{3 a}+\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {\int \frac {a^3 (299 A-147 B)-2 a^3 (95 A-39 B) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {\cos (c+d x) a+a}}dx}{3 a}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {\int \frac {a^3 (299 A-147 B)-2 a^3 (95 A-39 B) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{3 a}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3463 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {\frac {2 \int -\frac {3 a^4 (163 A-75 B)}{2 \sqrt {\cos (c+d x)} \sqrt {\cos (c+d x) a+a}}dx}{a}+\frac {2 a^3 (299 A-147 B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}}{3 a}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {\frac {2 a^3 (299 A-147 B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}-3 a^3 (163 A-75 B) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {\cos (c+d x) a+a}}dx}{3 a}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {\frac {2 a^3 (299 A-147 B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}-3 a^3 (163 A-75 B) \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )} \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{3 a}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 3261 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {\frac {6 a^4 (163 A-75 B) \int \frac {1}{\frac {\sin (c+d x) \tan (c+d x) a^3}{\cos (c+d x) a+a}+2 a^2}d\left (-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {\cos (c+d x) a+a}}\right )}{d}+\frac {2 a^3 (299 A-147 B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}}{3 a}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
\(\Big \downarrow \) 218 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {\frac {\frac {2 a^2 (95 A-39 B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {\frac {2 a^3 (299 A-147 B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}-\frac {3 \sqrt {2} a^{5/2} (163 A-75 B) \arctan \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{d}}{3 a}}{4 a^2}-\frac {a (17 A-9 B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}}{8 a^2}-\frac {(A-B) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{5/2}}\right )\) |
Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*(-1/4*((A - B)*Sin[c + d*x])/(d*Cos[ c + d*x]^(3/2)*(a + a*Cos[c + d*x])^(5/2)) + (-1/2*(a*(17*A - 9*B)*Sin[c + d*x])/(d*Cos[c + d*x]^(3/2)*(a + a*Cos[c + d*x])^(3/2)) + ((2*a^2*(95*A - 39*B)*Sin[c + d*x])/(3*d*Cos[c + d*x]^(3/2)*Sqrt[a + a*Cos[c + d*x]]) - ( (-3*Sqrt[2]*a^(5/2)*(163*A - 75*B)*ArcTan[(Sqrt[a]*Sin[c + d*x])/(Sqrt[2]* Sqrt[Cos[c + d*x]]*Sqrt[a + a*Cos[c + d*x]])])/d + (2*a^3*(299*A - 147*B)* Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]]*Sqrt[a + a*Cos[c + d*x]]))/(3*a))/(4*a ^2))/(8*a^2))
3.6.37.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/R t[a/b, 2]], x] /; FreeQ[{a, b}, x] && PosQ[a/b]
Int[1/(Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(c_.) + (d_.)*sin[(e _.) + (f_.)*(x_)]]), x_Symbol] :> Simp[-2*(a/f) Subst[Int[1/(2*b^2 - (a*c - b*d)*x^2), x], x, b*(Cos[e + f*x]/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*S in[e + f*x]]))], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Int[(csc[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*((a_.) + (b_.)*sin[(e_.) + (f_.)* (x_)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Sim p[(g*Csc[e + f*x])^p*(g*Sin[e + f*x])^p Int[(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^n/(g*Sin[e + f*x])^p), x], x] /; FreeQ[{a, b, c, d, e, f, g , m, n, p}, x] && NeQ[b*c - a*d, 0] && !IntegerQ[p] && !(IntegerQ[m] && I ntegerQ[n])
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[b*(A*b - a*B)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^( n + 1)/(a*f*(2*m + 1)*(b*c - a*d))), x] + Simp[1/(a*(2*m + 1)*(b*c - a*d)) Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[B*(a*c*m + b *d*(n + 1)) + A*(b*c*(m + 1) - a*d*(2*m + n + 2)) + d*(A*b - a*B)*(m + n + 2)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ [b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[m, -2^(-1)] && !GtQ[n, 0] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0])
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[(B*c - A*d)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(f*(n + 1)*(c^2 - d^2))), x] + Simp[1/(b*(n + 1)*(c^2 - d^2)) Int[(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x])^(n + 1)*Simp[A*(a*d*m + b*c*(n + 1)) - B*(a*c*m + b*d*(n + 1)) + b*(B*c - A*d)*(m + n + 2)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0] && Eq Q[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[n, -1] && (IntegerQ[n] || EqQ[m + 1/2, 0])
Leaf count of result is larger than twice the leaf count of optimal. \(548\) vs. \(2(229)=458\).
Time = 11.25 (sec) , antiderivative size = 549, normalized size of antiderivative = 2.03
method | result | size |
default | \(-\frac {\left (\sec ^{\frac {5}{2}}\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (489 A \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \left (\cos ^{5}\left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-225 B \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \left (\cos ^{5}\left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+299 A \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right ) \sqrt {2}+1467 A \left (\cos ^{4}\left (d x +c \right )\right ) \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-147 B \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right ) \sqrt {2}-675 B \left (\cos ^{4}\left (d x +c \right )\right ) \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+503 A \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {2}+1467 A \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )-255 B \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {2}-675 B \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+160 A \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}+489 A \left (\cos ^{2}\left (d x +c \right )\right ) \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-96 B \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}-225 B \left (\cos ^{2}\left (d x +c \right )\right ) \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-32 A \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {2}\right ) \sqrt {2}}{96 a^{3} d \left (1+\cos \left (d x +c \right )\right )^{3}}\) | \(549\) |
parts | \(-\frac {A \left (\sec ^{\frac {5}{2}}\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (489 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \left (\cos ^{5}\left (d x +c \right )\right )+1467 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ) \left (\cos ^{4}\left (d x +c \right )\right )+299 \sqrt {2}\, \left (\cos ^{4}\left (d x +c \right )\right ) \sin \left (d x +c \right )+1467 \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+503 \sqrt {2}\, \left (\cos ^{3}\left (d x +c \right )\right ) \sin \left (d x +c \right )+489 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )\right ) \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+160 \sqrt {2}\, \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-32 \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {2}\right ) \sqrt {2}}{96 d \left (1+\cos \left (d x +c \right )\right )^{3} a^{3}}+\frac {B \left (75 \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+49 \sqrt {2}\, \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )+225 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )\right ) \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+85 \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {2}+225 \cos \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+32 \sqrt {2}\, \sin \left (d x +c \right )+75 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arcsin \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )\right ) \left (\sec ^{\frac {5}{2}}\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}}{32 d \left (1+\cos \left (d x +c \right )\right )^{3} a^{3}}\) | \(567\) |
-1/96/a^3/d*sec(d*x+c)^(5/2)*(a*(1+cos(d*x+c)))^(1/2)/(1+cos(d*x+c))^3*(48 9*A*arcsin(cot(d*x+c)-csc(d*x+c))*cos(d*x+c)^5*(cos(d*x+c)/(1+cos(d*x+c))) ^(1/2)-225*B*arcsin(cot(d*x+c)-csc(d*x+c))*cos(d*x+c)^5*(cos(d*x+c)/(1+cos (d*x+c)))^(1/2)+299*A*sin(d*x+c)*cos(d*x+c)^4*2^(1/2)+1467*A*cos(d*x+c)^4* arcsin(cot(d*x+c)-csc(d*x+c))*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)-147*B*sin( d*x+c)*cos(d*x+c)^4*2^(1/2)-675*B*cos(d*x+c)^4*arcsin(cot(d*x+c)-csc(d*x+c ))*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)+503*A*sin(d*x+c)*cos(d*x+c)^3*2^(1/2) +1467*A*cos(d*x+c)^3*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*arcsin(cot(d*x+c)-c sc(d*x+c))-255*B*sin(d*x+c)*cos(d*x+c)^3*2^(1/2)-675*B*cos(d*x+c)^3*(cos(d *x+c)/(1+cos(d*x+c)))^(1/2)*arcsin(cot(d*x+c)-csc(d*x+c))+160*A*sin(d*x+c) *cos(d*x+c)^2*2^(1/2)+489*A*cos(d*x+c)^2*arcsin(cot(d*x+c)-csc(d*x+c))*(co s(d*x+c)/(1+cos(d*x+c)))^(1/2)-96*B*sin(d*x+c)*cos(d*x+c)^2*2^(1/2)-225*B* cos(d*x+c)^2*arcsin(cot(d*x+c)-csc(d*x+c))*(cos(d*x+c)/(1+cos(d*x+c)))^(1/ 2)-32*A*sin(d*x+c)*cos(d*x+c)*2^(1/2))*2^(1/2)
Time = 0.28 (sec) , antiderivative size = 246, normalized size of antiderivative = 0.91 \[ \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=-\frac {3 \, \sqrt {2} {\left ({\left (163 \, A - 75 \, B\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (163 \, A - 75 \, B\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (163 \, A - 75 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (163 \, A - 75 \, B\right )} \cos \left (d x + c\right )\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right ) + \frac {2 \, {\left ({\left (299 \, A - 147 \, B\right )} \cos \left (d x + c\right )^{3} + {\left (503 \, A - 255 \, B\right )} \cos \left (d x + c\right )^{2} + 32 \, {\left (5 \, A - 3 \, B\right )} \cos \left (d x + c\right ) - 32 \, A\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{96 \, {\left (a^{3} d \cos \left (d x + c\right )^{4} + 3 \, a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + a^{3} d \cos \left (d x + c\right )\right )}} \]
-1/96*(3*sqrt(2)*((163*A - 75*B)*cos(d*x + c)^4 + 3*(163*A - 75*B)*cos(d*x + c)^3 + 3*(163*A - 75*B)*cos(d*x + c)^2 + (163*A - 75*B)*cos(d*x + c))*s qrt(a)*arctan(sqrt(2)*sqrt(a*cos(d*x + c) + a)*sqrt(cos(d*x + c))/(sqrt(a) *sin(d*x + c))) + 2*((299*A - 147*B)*cos(d*x + c)^3 + (503*A - 255*B)*cos( d*x + c)^2 + 32*(5*A - 3*B)*cos(d*x + c) - 32*A)*sqrt(a*cos(d*x + c) + a)* sin(d*x + c)/sqrt(cos(d*x + c)))/(a^3*d*cos(d*x + c)^4 + 3*a^3*d*cos(d*x + c)^3 + 3*a^3*d*cos(d*x + c)^2 + a^3*d*cos(d*x + c))
Timed out. \[ \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\text {Timed out} \]
Timed out. \[ \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\text {Timed out} \]
\[ \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\int { \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
Timed out. \[ \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx=\int \frac {\left (A+B\,\cos \left (c+d\,x\right )\right )\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}}{{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]